<?php
/**
 * Project: Recipe
 * File: FoodCollocationModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-4-20
 * Time: 上午9:08
 */


class FoodCollocationModel extends RelationModel{

	protected $_link = array(



		'FoodArticle'=>array(
			'mapping_type'=>BELONGS_TO,
			'mapping_name'=>'destarticle',
			'class_name'=>'FoodArticle',
			'foreign_key'=>'destarticleid',
			'mapping_fields'=>'id,name,image'
		),

/*		'FoodSection'=>array(
			'mapping_type'=>BELONGS_TO,
			'mapping_name'=>'foodsection',
			'class_name'=>'FoodSection',
			'foreign_key'=>'sectionid',
		),*/
	);

}
